import request from '@/utils/request'

// 付款单列表
export function billsPaymentList(data) {
    return request({
        url: '/system/billsPayment/list',
        method: 'get',
        params: data
    })
}

// 新建付款单
export function billsPaymentAdd(data) {
    return request({
        url: '/system/billsPayment/insert',
        method: 'post',
        data: data
    })
}

// 编辑付款单
export function billsPaymentUpdate(data) {
    return request({
        url: '/system/billsPayment/update',
        method: 'post',
        data: data
    })
}

// 获取付款单详细信息
export function billsPaymentDetail(id) {
    return request({
        url: '/system/billsPayment/selectOne?paymentId=' + id,
        method: 'get'
    })
}

// 审核
export function billsPaymentAudit(data) {
    return request({
        url: '/system/billsPayment/audit',
        method: 'post',
        data: data
    })
}

// 拆单
export function billsPaymentSplitOrder(data) {
    return request({
        url: '/system/billsPayment/splitOrder',
        method: 'post',
        data: data
    })
}